package com.laolang.shop.modules.auth.filter;

import com.laolang.shop.common.core.consts.ModuleNameConst;
import com.laolang.shop.common.core.util.LogUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author khlbat
 * @version 1.0
 * @date 2020/11/1 20:46
 */
@Slf4j
public class AfterFilter extends OncePerRequestFilter {
    @Override
    protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
        LogUtil.info(log, ModuleNameConst.AUTH, "after filter");
        filterChain.doFilter(httpServletRequest, httpServletResponse);
    }
}
